General Socket Options
Level
Option
Description
*
R
W
Value
Type
SOL_SOCKET SO_ATTACH_FILTER Attach Filter ? ? ? Integer int
SOL_SOCKET SO_BINDTODEVICE Bind to Device ? ? ? String char*
SOL_SOCKET SO_BROADCAST Enable Broadcast Y Y Y Boolean int
SOL_SOCKET SO_BSDCOMPAT Request BSD bug-for-bug Compatibility Y Y Y Boolean int
SOL_SOCKET SO_DEBUG Enable Socket Debugging Y Y Y Boolean int
SOL_SOCKET SO_DETACH_FILTER Detach Filter ? ? ? Integer int
SOL_SOCKET SO_DONTROUTE Forbid Routing Y Y Y Boolean int
SOL_SOCKET SO_ERROR Last Error Y Y Y Integer int
SOL_SOCKET SO_KEEPALIVE Enable Keeping Connection Alive Y Y Y Boolean int
SOL_SOCKET SO_LINGER Linger Until Data Sent Y Y Y Linger struct linger
SOL_SOCKET SO_NO_CHECK No Checking Y Y Y Boolean int
SOL_SOCKET SO_OOBINLINE Place Out-of-Band Inline Y Y Y Boolean int
SOL_SOCKET SO_PASSCRED Enable Passing User Credentials Y Y Y Boolean int
SOL_SOCKET SO_PEERCRED Peer Credentials Y Y Y Credentials struct ucred
SOL_SOCKET SO_PRIORITY Set the queue priority Y Y Y Integer int
SOL_SOCKET SO_RCVBUF Receive Buffer Size Y Y Y Integer int
SOL_SOCKET SO_RCVLOWAT Receive Low Water Mark Y Y N Integer int
SOL_SOCKET SO_RCVTIMEO Receive Timeout Y Y Y Time struct timeval
SOL_SOCKET SO_REUSEADDR Reuse Address Y Y Y Boolean int
SOL_SOCKET SO_REUSEPORT Reuse Address (multicasting) N - - Boolean int
SOL_SOCKET SO_SECURITY_AUTHENTICATION Security Authentication N - - Integer int
SOL_SOCKET SO_SECURITY_ENCRYPTION_NETWORK Security Encryption Network N - - Integer int
SOL_SOCKET SO_SECURITY_ENCRYPTION_TRANSPORT Security Encryption Transport N - - Integer int
SOL_SOCKET SO_SNDBUF Send Buffer Size Y Y Y Integer int
SOL_SOCKET SO_SNDLOWAT Send Low Water Mark Y Y Y Integer int
SOL_SOCKET SO_SNDTIMEO Send Timeout Y Y Y Time struct timeval
SOL_SOCKET SO_TYPE Socket Type Y Y Y Integer int